﻿using SXFramWork.Core;
using SXFramWork.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SXFramWork.Repository
{
    public class SysJobGroupRepository: RepositoryAbstract<SysJobGroupEntity>, ISysJobGroupRepository
    {
        public SysJobGroupRepository(IDbContext dbContext) : base(dbContext)
        {

        }

        public async Task<List<SysJobGroupEntity>> Query(JobGroupQueryModel model)
        {
            var sql = "select * from SysJobGroup";
            return await FromSql.GetPageListAsync(sql, model);
        }
    }
}
